package com.doge.walknovel.business.home.discover

import androidx.recyclerview.widget.GridLayoutManager

class DiscoverLayoutManagerSpanSizeLookUp(val adapter: DiscoverAdapter) :
    GridLayoutManager.SpanSizeLookup() {
    override fun getSpanSize(position: Int): Int {
        return when (adapter.getItemViewType(position)) {
            ItemType.GridContent -> 1
            ItemType.GridRankContent -> 1
            else -> 3
        }
    }
}